import request from '@/utils/request'
// 点位搜索（区域详情）
export const pointSearch = ({ pageIndex, pageSize, name, regionId }) => {
  return request({
    url: `/api/vm-service/node/search`,
    params: {
      name, pageIndex, pageSize, regionId
    }
  })
}
// 点位详情
export const pointDetails = (id) => {
  return request({
    url: `/api/vm-service/node/vmList/${id}`

  })
}
// 新增点位
export const addPT = (data) => {
  return request({
    url: '/api/vm-service/node',
    method: 'POST',
    data
  })
}
// 修改点位
export const modifyPT = (id, data) => {
  return request({
    url: `/api/vm-service/node/${id}`,
    method: 'PUT',
    data
  })
}
// 删除点位
export const deletePT = (id) => {
  return request({
    url: `/api/vm-service/node/${id}`,
    method: 'DELETE'

  })
}
